package cn.iocoder.yudao.framework.base.common.mybatis.config;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.boot.autoconfigure.AutoConfiguration;

@AutoConfiguration
public class MybatisAutoConfiguration {
    static {
        ObjectMapper objectMapper = JacksonTypeHandler.getObjectMapper();
        objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
    }
}
